package com.yehongyu.mytools.basic.grammar;

public class Java006_OverrideNotinStaticMethod extends Parent005 {

	static String doSomething() {
		return "Child";
	}

	public static void main(String[] args) {
		//静态方法不重载
		System.out.println(Parent005.doSomething());
		System.out.println(Java006_OverrideNotinStaticMethod.doSomething());
	}
}

class Parent005 {

	static String doSomething() {
		return "Parent";
	}
}